package org.llc.authorization.controller;

import io.swagger.annotations.Api;
import org.llc.authorization.config.util.AuthProperties;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * 授权码登录Controllex`x`r
 *
 * @author llc
 * @date 2020/1/16 10:25
 * @since 1.0.0
 */
@Api(tags = "登录跳转")
@Controller
public class AuthController {

    /**
     * 授权码登录页跳转
     *
     * @return java.lang.String
     * @author llc
     * @date 2020/1/16 11:13
     */
    @RequestMapping(AuthProperties.LOGIN_PAGE)
    public String loginPage(Model model) {
        model.addAttribute("loginProcessUrl", AuthProperties.LOGIN_PROCESS_URL);
        return "login";
    }

}
